


package com.UMLife.me.ui;

import com.UMLife.me.action.TipsAction;
import com.UMLife.me.global.Global;
import de.enough.polish.ui.Container;
import de.enough.polish.ui.Form;
import de.enough.polish.ui.Item;
import de.enough.polish.ui.StringItem;





public class TipsUI
		extends Form
{
	public TipsUI()
	{
		//#style TipsUI
		super(null);
		
		//#style con
		Container con = new Container(true);
		try
		{
			//#style question
			StringItem tipsItem = new StringItem(null, this.tips, Item.PLAIN);
			con.add(tipsItem);
		} catch (Exception e)
		{
			e.printStackTrace();
		}
		this.append(Global.getGlobalLogo());
		this.append(con);
		
		//杨光添加的动作事件。
		TipsAction action = new TipsAction(this);
		this.setCommandListener(action);
	}
	
	/**
	 * 设置提示内容
	 * 
	 * @param tip
	 */
	public void setTips(String tip)
	{
		//TODO
		if (tip != null)
		{
			this.tips = tip;
		}
	}
	
	private String	tips	= "我们经常去一些餐馆，到底是因为那里的东西好吃还是因为那里的服务好呢？";
	
}
